package com.example.sunsg.okhttptest.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sunsg on 16/3/2.
 */
public class LocalImageItemTitle implements LocalImageItem.LocalImageChildItem, Parcelable {
    private String title;

    public LocalImageItemTitle() {
    }

    public LocalImageItemTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
    }

    protected LocalImageItemTitle(Parcel in) {
        this.title = in.readString();
    }

    public static final Parcelable.Creator<LocalImageItemTitle> CREATOR = new Parcelable.Creator<LocalImageItemTitle>() {
        public LocalImageItemTitle createFromParcel(Parcel source) {
            return new LocalImageItemTitle(source);
        }

        public LocalImageItemTitle[] newArray(int size) {
            return new LocalImageItemTitle[size];
        }
    };
}
